export XRDDMSYS=$1
if [ -z "$XRDDMSYS" ]; then
  export XRDDMSYS=`pwd`
fi

if [ -z "$APPMON_DIR" ]; then
  export APPMON_DIR=$XRDDMSYS
fi

if [ -z "$AAF_DIR" ];then
  export AAF_DIR=`cd $XRDDMSYS/../; pwd`
fi

if [ -z "$ROOTSYS" ];then
 export ROOTSYS=$AAF_DIR/root
fi

export PATH="$ROOTSYS/bin:$PATH"
export LD_LIBRARY_PATH="$ROOTSYS/lib:$LD_LIBRARY_PATH"


export PATH="$XRDDMSYS/bin:$PATH"
export LD_LIBRARY_PATH="$XRDDMSYS/lib:$XRDDMSYS/lib64:$LD_LIBRARY_PATH"

export X509_CERT_DIR="$XRDDMSYS/share/certificates/"
export GCLIENT_SERVER_LIST="pcapiserv08.cern.ch:10000|pcapiserv04.cern.ch:10000|pcapiserv07.cern.ch:10000|"
export GSHELL_ROOT="$1"

export XRDDM_DEBUG=""
export XRDDM_OPTIONS="-a -S -R -s aliengr,alien,stdroot,aliencp"
